using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._3DAnalystTools._AreaandVolume
{
    /// <summary>
    /// <para>Difference 3D</para>
    /// <para>Eliminates portions  of multipatch features in a target feature class that overlap with enclosed volumes of multipatch features in the subtraction feature class.</para>
    /// <para>消除目标要素类中与减法要素类中的多面体要素的封闭体积重叠的部分。</para>
    /// </summary>    
    [DisplayName("Difference 3D")]
    public class Difference3D : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public Difference3D()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features_minuend">
        /// <para>Input Features</para>
        /// <para>The multipatch features that will have its features removed by the subtrahend features.</para>
        /// <para>多面体要素，其要素将被子 trahend 要素移除。</para>
        /// </param>
        /// <param name="_in_features_subtrahend">
        /// <para>Subtract Features</para>
        /// <para>The multipatch features that will be subtracted from the input.</para>
        /// <para>将从输入中减去的多面体要素。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Feature Class</para>
        /// <para>The output multipatch feature class that will contain the resulting features.</para>
        /// <para>将包含生成要素的输出多面体要素类。</para>
        /// </param>
        public Difference3D(object _in_features_minuend, object _in_features_subtrahend, object _out_feature_class)
        {
            this._in_features_minuend = _in_features_minuend;
            this._in_features_subtrahend = _in_features_subtrahend;
            this._out_feature_class = _out_feature_class;
        }
        public override string ToolboxName => "3D Analyst Tools";

        public override string ToolName => "Difference 3D";

        public override string CallName => "3d.Difference3D";

        public override List<string> AcceptEnvironments => ["XYDomain", "ZDomain", "autoCommit", "configKeyword", "extent", "geographicTransformations", "outputCoordinateSystem", "workspace"];

        public override object[] ParameterInfo => [_in_features_minuend, _in_features_subtrahend, _out_feature_class, _out_table];

        /// <summary>
        /// <para>Input Features</para>
        /// <para>The multipatch features that will have its features removed by the subtrahend features.</para>
        /// <para>多面体要素，其要素将被子 trahend 要素移除。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features_minuend { get; set; }


        /// <summary>
        /// <para>Subtract Features</para>
        /// <para>The multipatch features that will be subtracted from the input.</para>
        /// <para>将从输入中减去的多面体要素。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Subtract Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features_subtrahend { get; set; }


        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para>The output multipatch feature class that will contain the resulting features.</para>
        /// <para>将包含生成要素的输出多面体要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Output Table</para>
        /// <para><xdoc>
        ///   <para>An optional table that stores information about the relationship between the input features and the difference output. The following fields are present in this table:</para>
        ///   <bulletList>
        ///     <bullet_item>Output_ID—The ID of the output feature.</bullet_item><para/>
        ///     <bullet_item>Minuend_ID—The ID of the input feature.</bullet_item><para/>
        ///     <bullet_item>Subtrahend—The ID of the subtract feature.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>一个可选表，用于存储有关输入要素和差值输出之间关系的信息。此表中包含以下字段：</para>
        ///   <bulletList>
        ///     <bullet_item>Output_ID - 输出要素的 ID。</bullet_item><para/>
        ///     <bullet_item>Minuend_ID - 输入要素的 ID。</bullet_item><para/>
        ///     <bullet_item>Subtrahend - 减法特征的 ID。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Table")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _out_table { get; set; } = null;


        public Difference3D SetEnv(object XYDomain = null, object ZDomain = null, int? autoCommit = null, object configKeyword = null, object extent = null, object geographicTransformations = null, object outputCoordinateSystem = null, object workspace = null)
        {
            base.SetEnv(XYDomain: XYDomain, ZDomain: ZDomain, autoCommit: autoCommit, configKeyword: configKeyword, extent: extent, geographicTransformations: geographicTransformations, outputCoordinateSystem: outputCoordinateSystem, workspace: workspace);
            return this;
        }

    }

}